﻿using cnFederal.FaCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cnFederal.Controls
{
    public partial class ActivityCtrl : System.Web.UI.UserControl
    {
        List<FaPost> _postList;
        public ActivityCtrl()
        {
            FaPosts.Load();
            _postList = FaPosts.GetLastActivities(3);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ListViewActivity.Items.Clear();
            ListViewActivity.DataSource = _postList;
            ListViewActivity.DataBind();
        }
     
        public System.Drawing.Color GetRowColor(int index)
        {
            return CnfiFunctions.GetRowColor(index);
        }
    }
}